﻿#ifndef GAMERULE_H
#define GAMERULE_H
#include <QWidget>
#include <tank.h>
#include <QPainter>
#include <stdio.h>
#include <QDebug>
using namespace std;

extern bool is_up;

class gamerule:public QWidget
{
public:
    gamerule();
    gamerule(QWidget *event);
    void isWin(tank &t1,tank &t2);
    void paintEvent(QPaintEvent *event);
    void init_tank(tank &t1,tank &t2);
    void get_socore(tank &t1,tank &t2);
};

#endif // GAMERULE_H
